package com.demo.shardingsphere.supplier.service.impl;


import com.demo.shardingsphere.supplier.mapper.SupplierOrderMapper;
import com.demo.shardingsphere.supplier.model.SupplierOrder;
import com.demo.shardingsphere.supplier.service.ISupplierOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class SupplierOrderServiceImpl implements ISupplierOrderService {

    @Autowired
    private SupplierOrderMapper supplierOrderMapper;


    @Override
    public int insertOrder(SupplierOrder supplierOrder) {
        return supplierOrderMapper.insertOrder(supplierOrder);
    }


    @Override
    public List<SupplierOrder> queryOrderListBySupplierId(Long supplierId) {
        return supplierOrderMapper.queryOrderListBySupplierId(supplierId);
    }


}
